import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

import * as echarts from 'echarts';
import  purple from "./purple-passion.json"
import { SVGRenderer, CanvasRenderer } from 'echarts/renderers';
echarts.use([SVGRenderer, CanvasRenderer]);

echarts.registerTheme('purple',purple );
var myChart = function( el ){
  return echarts.init(document.getElementById(el), 'purple',{ renderer: 'svg' });

}


Vue.prototype.$myChart = myChart;

new Vue({
  render: h => h(App),
}).$mount('#app')
